<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="subAccountList.title"/></title>
    <meta name="heading" content="<fmt:message key='subAccountList.heading'/>"/>
    <meta name="menu" content="YADataMenu"/>
</head>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="editSubAccount"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="subAccounts" defaultsort="2" defaultorder="descending" class="table" requestURI="" id="subAccounts" export="true" pagesize="25">

    <display:column property="id" sortable="true" href="editSubAccount" media="html"
        paramId="id" paramProperty="id" titleKey="subAccount.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="subAccount.id"/>
    <display:column property="openDay" group="1" sortable="true" titleKey="subAccount.openDay"/>
    <display:column property="subAccount" group="2" sortable="true" titleKey="subAccount.subAccount"/>
    <display:column property="account.account" sortable="true" titleKey="account.account"/>
    <display:column property="remark" sortable="true" titleKey="subAccount.remark"/>
    <display:column property="subTime" sortable="true" titleKey="subAccount.subTime"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="subAccounts.subAccounts"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="subAccounts.subAccounts"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="subAccounts.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="subAccounts.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="subAccounts.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="editSubAccount"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("subAccounts");
</script>